SeizureWise algorithm